package com.zmn.oms.business.interfaces.attachment;

import com.zmn.oms.common.dro.attachment.WorkAttachmentDRO;
import com.zmn.oms.common.exception.OmsBaseException;
import com.zmn.oms.model.dto.orderattachment.ModifyOrderAttachmentDTO;
import com.zmn.oms.model.entity.orderattachment.OrderAttachmentQuery;
import com.zmn.oms.model.entity.work.OrderWork;
import com.zmn.oms.model.vo.attachment.AttachmentDetailGroupVO;

import java.util.List;

/**
 * 类描述: 工单附件
 *
 * @author: liudi
 * @since: 2022/03/29 18:05
 */
public interface AttachmentBService {

	/**
	 * 运营后台获取附件信息
	 *
	 * @param orderWork
	 * @return
	 */
	List<AttachmentDetailGroupVO> getOrderAttachmentByOrderWork(OrderWork orderWork);

	/**
	 * 渠道配置的工单附件
	 *
	 * @param orderAttachmentQuery
	 * @return
	 */
	WorkAttachmentDRO getOrderAttachmentAndConfigByQuery(OrderAttachmentQuery orderAttachmentQuery) throws OmsBaseException;

	/**
	 * 修改附件资源
	 *
	 * @param modifyOrderAttachmentDTO
	 */
	void modifyOrderWorkAttachment(ModifyOrderAttachmentDTO modifyOrderAttachmentDTO) throws OmsBaseException;
}
